/*
 * @Author: chen
 * @Date: 2020-05-26 08:40:43
 * @LastEditTime: 2020-09-17 14:42:47
 * @Description:
 */

module.exports = {
  lintOnSave: false,//开启语法检测
  devServer: {
    //host: "localhost",
    //port: 8081, // 端口号
    https: false, // https:{type:Boolean}
    // open: true, //配置自动启动浏览器
    proxy: {
      "/api": {
        //代理api
		
		// target: "http://localhost:8080/m.api",
        target: "http://admin.sixblog.com/admin",
        // target: "http://39.108.158.63:8821/m.api", //服务器api地址
        ws: true, // proxy websockets
        changeOrigin: true, //是否跨域
        pathRewrite: {
          //重写路径
          "^/api": "",
        }
      }
    }
  }
};
